package com.ie.controller.before;

import com.ie.common.http.ResponseResult;
import com.ie.entity.FocusEntity;
import com.ie.service.before.FocusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/api/before/focus")
public class FocusCotroller {
    @Autowired
    private FocusService focusService;
    @PostMapping("/add")
    public ResponseResult<Map<String, Object>> add(@RequestBody FocusEntity focusEntity){

        return focusService.addFocus(focusEntity);
    }


}
